import request from "@/utils/request";

// 查询人员列表
export function personList(query) {
  return request({
    url: "/system/user/list",
    method: "get",
    params: query,
  });
}

// 新增人员
export function addPerson(data) {
  return request({
    url: "/system/user",
    method: "post",
    data,
  });
}

// 查询角色列表
export function roleList() {
  return request({
    url: "/system/role/list",
    method: "get",
  });
}

// 删除人员
export function deletePerson(id) {
  return request({
    url: `/system/user/${id}`,
    method: "delete",
  });
}
